package com.epalmpay.service.management;

import java.util.List;

import com.epalmpay.dto.system.MenuInDTO;
import com.epalmpay.entity.Menu;

public interface IMenuService {
	
	/**
	 * @param parentId
	 * @return
	 * @throws Exception
	 */
	public List<Menu> listSubMenuByParentId(String parentId,Integer menuFlag)throws Exception;
	
	/**
	 * @param pd
	 * @return
	 * @throws Exception
	 */
	public Menu getMenuById(Integer menuId) throws Exception;
	
	/**
	 * @param menu
	 * @throws Exception
	 */
	public void saveMenu(Menu menu) throws Exception;
	
	/**
	 * @param pd
	 * @return
	 * @throws Exception
	 */
	public Menu findMaxId() throws Exception;
	
	/**
	 * @param MENU_ID
	 * @throws Exception
	 */
	public void deleteMenuById(Integer menuId) throws Exception;
	
	/**
	 * @param menu
	 * @throws Exception
	 */
	public void edit(Menu menu) throws Exception;
	
	
	/**
	 * @param menu
	 * @throws Exception
	 */
	public void editicon(Menu menu) throws Exception;
	
	/**
	 * @param MENU_ID
	 * @return
	 * @throws Exception
	 */
	public List<Menu> listAllMenu(String MENU_ID,Integer menuFlag) throws Exception;
	
	/**
	 * @param MENU_ID
	 * @return
	 * @throws Exception
	 */
	public List<Menu> listAllMenuQx(String MENU_ID,Integer menuFlag) throws Exception;
	/**
	 * menuId 顶级菜单
	 * menuFlag 1表示 掌富运营 2 渠道管理员3，品牌大商户
	 * groupId 商户id
	 */
	public List<Menu> listAllModelMenu(String string, Integer menuFlag, Long groupId,Integer menuState,String parentId) throws Exception;
	
	
	/**根据用户id以及菜单id查询操作员是否拥有菜单权限
	 * @param menu
	 * @throws Exception
	 */
	public boolean MenuRights(Long userId,Integer menuId) throws Exception;
	
}
